package com.crayon2f.test;

import cn.hutool.core.date.DateUtil;
import com.google.common.collect.Lists;
import org.junit.Test;

import java.util.Date;
import java.util.List;
import java.util.TreeSet;

/**
 * Created by feifan.gou@gmail.com on 2024/9/3 10:42.
 */
public class TEST202409 {


    @Test
    public void testList() {

        List<Date> dateList = Lists.newArrayList();
        dateList.add(new Date());
        dateList.add(new Date(1725158716000L));
        dateList.add(new Date(1722480316000L));
        dateList.add(new Date(1723430716000L));
        dateList.forEach(System.out::println);
        TreeSet<Date> dateTreeSet = new TreeSet<>(dateList);
        dateTreeSet.forEach(System.out::println);



    }

    @Test
    public void testReplaceAll() {

        String string = "3_3_4";
        System.out.println(string.replaceAll("(_)", "-"));

        System.out.println("1e19679c-aae9-4ef8-b42b-21e584424330".length());
        System.out.println("ODM4NzU4ODE3OTU0MDI0NjUyOCNQQy1XRUItRklSRUZPWCM5MTE3MTcwNzI3M2I4NDZkNDJlMDUwY2I3OGJiNGNlNy5GTlctQVVUSC1NQU5BR0UuMTQ0MTY4MzE5NjAzNzM1MzQ3MwUAC".length());
    }
}
